package com.ruoyi.system.domain.idclazz;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class SysRoleDeptId implements Serializable {
	private Long roleId;
	private Long deptId;

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) return false;
		SysRoleDeptId that = (SysRoleDeptId) o;
		return Objects.equals(roleId, that.roleId) && Objects.equals(deptId, that.deptId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(roleId, deptId);
	}
}
